#pragma once

class CObject
{
public:

#ifdef _DEBUG
	void* operator new(size_t size,const char* sFile,int nLine);

	void operator delete(void* pMemory);	

	void operator delete(void* pMemory,const char* sFile,int nLine);
#else
	void* operator new(size_t size) {return malloc(size);}

	void operator delete(void* pMemory){free(pMemory);}
#endif
};

#ifdef _DEBUG
	#define MyNew new(__FILE__,__LINE__)
#else
	#define MyNew new
#endif
